import os

os.system("dir")

def tryCmd():
    output = os.popen("dir").read()
    print(output)
    os.system("pause")


if __name__ == '__main__':
    tryCmd()